

cd "~/dropbox/immigration conjoint/Replication Files/Data"
use "ipsos_rep", clear

cd "~/dropbox/immigration conjoint/Replication Files/Output"
set scheme plotplain

* Manuscript

// Figure 1: Main Results

reg choice_exp8 exp8_country_1 i0.exp8_country_2 exp8_skill_1 exp8_skill_2 ///
exp8_age_1 exp8_age_2 exp8_gender_1 exp8_gender_2 exp8_number_1 exp8_number_2 ///
exp8_ideology_2 exp8_ideology_1 exp8_relatives_2 exp8_relatives_1 ///
exp8_reasons_1 exp8_reasons_2, vce(cluster respondent_serial) 

coefplot, drop(_cons) xline(0) omitted baselevels graphregion(color(white)) ///
 xtitle ("") headings(exp8_country_1="{bf:Country}" ///
 exp8_skill_1="{bf:Skills}" exp8_age_1="{bf:Age}" exp8_gender_1="{bf:Gender}" ///
 exp8_number_1="{bf:Number}" exp8_ideology_2="{bf:Ideology}" ///
 exp8_relatives_2="{bf:Relatives}" exp8_reasons_1="{bf:Reason}") ///
 coeflabels (exp1_army_enc_1="Venezuela" exp8_pro_2="High-skilled" exp8_age_2="More than 40" exp8_gender_2="Woman" ///
 exp8_number_2="With family" exp8_ideology_1="Right" exp8_relatives_1="Yes" ///
 exp8_reason_2="Economic opportunities", labsize(vsmall))
graph export plot_conjoint.jpg, replace 










